package
        com.zzc.fee.controller.apis;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hos.entity.sys.Comment;
import com.hos.entity.sys.User;
import com.hos.vo.Result;
import com.zzc.fee.service.CommentService;
import com.zzc.fee.vo.CommentVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;


import javax.annotation.Resource;
import java.util.List;


/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2024/1/2 17:18
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/fee/api/statistics/comment")
@Api(value = "医生评价相关接口",tags = "医生评价相关接口")
public class APICommentController {

    @Resource
    private CommentService commentService;

    @PostMapping("/queryAllNew")
    @ApiOperation("查询所有评价信息")
    public Result<List<Comment>> queryAllNew(@RequestBody CommentVo commentVo){
        return new Result<>(200,"查询成功",commentService.queryAllNew(commentVo));
    }
    @PostMapping("/getdocNameById/{valueId}")
    @ApiOperation("根据id查询医生姓名")
    public Result<User> getdocNameById(@PathVariable Long valueId){
        return new Result<User>(200,"查询成功",commentService.getdocNameById(valueId));
    }
    @DeleteMapping("/deleteNewByIds/{ids}")
    @ApiOperation("根据id删除评论信息")
    public Result<Integer> deleteNewByIds(@PathVariable List<Long> ids){
        return new Result<>(200,"删除成功",commentService.deleteNewByIds(ids));
    }
}